﻿namespace CodePlex.Logistics.Web.Models
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;

    

    public class AlertViewModel
    {
        public enum ViewModelAlertType
        {
            Info = 0,
            Success = 1,
            Warning = 3,
            Danger = 4,
        }

        public static string GetCssClass(ViewModelAlertType alertType)
        {
            switch (alertType)
            {
                case ViewModelAlertType.Success:
                    return "alert-success";
                case ViewModelAlertType.Warning:
                    return "alert-warning";
                case ViewModelAlertType.Danger:
                    return "alert-danger";
                case ViewModelAlertType.Info:
                default:
                    return "alert-info";
            }
        }

        public static string GetHeading(ViewModelAlertType alertType)
        {
            switch (alertType)
            {
                case ViewModelAlertType.Success:
                    return "Success";
                case ViewModelAlertType.Warning:
                    return "Warning";
                case ViewModelAlertType.Danger:
                    return "Danger";
                case ViewModelAlertType.Info:
                default:
                    return "Info";
            }
        }
        //<div class="alert alert-warning alert-dismissable">
        //    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        //    <strong>Warning!</strong> Better check yourself, you're not looking too good.
        //</div>

        //<div class="alert alert-success">...</div>
        //<div class="alert alert-info">...</div>
        //<div class="alert alert-warning">...</div>
        //<div class="alert alert-danger">...</div>

        public ViewModelAlertType AlertType { get; set; }
        public string Message { get; set; }
        

    }
}